home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8744 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.eden.com!usenet
  2. From: Shane Sadler <nexus@eden.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: hungarian syntax
  5. Date: Tue, 05 Mar 1996 21:07:44 -0700
  6. Organization: Eden Matrix Services
  7. Message-ID: <313D0F90.68C68B15@eden.com>
  8. References: <4hid61$h4k@aldebaran.sct.fr>
  9. NNTP-Posting-Host: net-2-092.austin.eden.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; Linux 1.2.8 i586)
  14.  
  15. Marc Escalier wrote:
  16. > Hello, i'm looking for information about the hungarian syntax in c and
  17. > c++
  18.  
  19. Marc,
  20.  
  21. There is no Hungarian "syntax" in C (unless you're writing strings in
  22. Budapest, I guess). Cependant, il y a une *notation* "hongroise". You
  23. can find information on this notation system in just about any book on
  24. Windows programming where it seems to be very popular. 
  25.  
  26. Basically, it's just the practice of prefixing a letter or two to
  27. variable names in order to give information about the variable's type.
  28. For example, the variable "szFooBar" would indicate that the variable is
  29. a null-terminated string because of the "sz". This is supposed to make
  30. your code more easily understood which I suppose it would--once you get
  31. used to something that, at first glance, looks about as readable as
  32. Linear A. :-)
  33.  
  34. Bonne chance!
  35.  
  36. -- Shane
  37. ===================================================================
  38. S. M. Sadler
  39. e-mail: nexus@eden.com
  40. Web: http://www.eden.com/~nexus
  41.